package net.yla.smartbus.module.controller;

import net.yla.smartbus.core.api.ApiResult;
import net.yla.smartbus.core.base.BaseController;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : Yee
 * @Date : Created in 2020/12/24/15:00
 * @description :
 */
@RequestMapping("/pub/erp")
@RestController
public class TestController extends BaseController {
    @PostMapping("/notify")
      public ApiResult test(@RequestBody @Validated TestData data){
        System.out.println("对方已请求------->");
        System.out.println("对方请求参数: "+data);
          return success();
      }
}
